package gamagora.game.map.parts
{
	import gamagora.box2d.OSPhysicData;
	import gamagora.box2d.OSPhysicSprite;
	import gamagora.game.map.OSLayer;
	import gamagora.game.OSWall;
	import gamagora.game.map.OSMap;
	import gamagora.game.utils.OSImages;
	
	import org.flixel.FlxSprite;
	
	public class OSMap4 extends OSMap
	{
		public function OSMap4()
		{
			super(3);
		}
		
		protected override function create():void
		{
			//In Game
			_objects.push(new OSWall(_xDecal, 162, 156, 540 - 162));// Premier bloc
			_objects.push(new OSWall(_xDecal + 776, 280, WIDTH - 776, 540 - 280)); // Deuxième bloc
			
			_objects.push(new OSWall(_xDecal + 154, 440, 200, 5, 20, OSPhysicData.BOUNCE, false)); // Premier bounce
			_objects.push(new OSWall(_xDecal + 354, 470, 240, 5, 0, OSPhysicData.BOUNCE, false)); // Deuxième bounce
			_objects.push(new OSWall(_xDecal + 592, 440, 190, 5, -20, OSPhysicData.BOUNCE, false)); // Troisième bounce
			
			_foregrounds.add(new FlxSprite(_xDecal, 0, OSImages.N4Tissu));
		}
	}
}